import numpy as np

arr = np.array([[1,2,3,4,5],[2,4,5,6,7],[2,4,5,6,7],[2,4,5,6,7],[2,4,5,6,7]])
print(arr[1,2])
print(arr[:,2])
print(arr[:2,:4])
print(arr[[0,1],[0,2]])
arr>2
print(arr>2)
print(arr[arr>2])
print("-------------")
A=np.array([1,2,3,4,5])
B=np.array([2,4,5,6,7])
print(A+B)
print(A-B)
print(A*B)
print(A/B)
C=np.array([[1],[2],[3]])
D=np.array([1,2,3,4])
print(C+D)
print(C-D)
print(C*D)
print(np.dot(A,B))



